package com.UdpRecieve.service.impl;

import com.UdpRecieve.domain.system.SysUser;
import com.UdpRecieve.mapper.SysUserMapper;
import com.UdpRecieve.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public List<SysUser> selectUserList(SysUser sysUser) {
        return sysUserMapper.selectUser(sysUser);
    }

    /**
     * 重置密码
     * @param sysUser
     * @return
     */
    @Override
    public int rePassword(SysUser sysUser) {
        sysUser.setPassword("123456");
        return sysUserMapper.rePassword(sysUser);
    }
}
